package com.xiaobaibai.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xiaobaibai.dao.BargainRecordingDao;
import com.xiaobaibai.entity.BargainRecording;
import com.xiaobaibai.service.IBargainRecordingService;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xiaobaibai
 * @since 2020-11-02
 */
@Service
public class BargainRecordingServiceImpl extends ServiceImpl<BargainRecordingDao, BargainRecording> implements IBargainRecordingService {

    @Override
    public boolean haveHelp(Integer bargainId, Integer userId) {
        return this.baseMapper.haveHelp(bargainId,userId)==1;
    }

}
